import request from '@/utils/request'

// 查询反馈分类列表
export function listFeedbackCategories(query) {
  return request({
    url: '/support/FeedbackCategories/list',
    method: 'get',
    params: query
  })
}

// 查询反馈分类详细
export function getFeedbackCategories(categoryId) {
  return request({
    url: '/support/FeedbackCategories/' + categoryId,
    method: 'get'
  })
}

// 新增反馈分类
export function addFeedbackCategories(data) {
  return request({
    url: '/support/FeedbackCategories',
    method: 'post',
    data: data
  })
}

// 修改反馈分类
export function updateFeedbackCategories(data) {
  return request({
    url: '/support/FeedbackCategories',
    method: 'put',
    data: data
  })
}

// 删除反馈分类
export function delFeedbackCategories(categoryId) {
  return request({
    url: '/support/FeedbackCategories/' + categoryId,
    method: 'delete'
  })
}
